class Women(object):
    def __init__(self, name, age):
        self.name = name
        self.__age = age

    def __get_age(self):
        print(self.name + ": " + str(self.__age))
    def work(self):
        # 可以通过内部的普通方法访问私有属性,私有方法后，就直接能获取到了
        self.__get_age()
        print(self.name + ": female work: " + str(self.__age))



Wo = Women("Jessica", 18)
Wo.work()
# 私有方法外部不能调用
# Wo.__get_age()

